﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework;

namespace StartDance
{
    class MusicManager
    {
        //background music
        public Song music;

        public void PlayMusic(Game game, String name)
        {
            MediaPlayer.Stop();
            music = game.Content.Load<Song>(name);
            MediaPlayer.IsRepeating = true;
            MediaPlayer.Play(music);
        }

        public void StopMusic()
        {
            MediaPlayer.Stop();
        }
    }
}
